#!/bin/bash

# set up the .htaccess file to point to the right path
echo AuthType Basic > .htaccess
echo AuthName \"Contest Judge\" >> .htaccess
echo AuthUserFile `pwd`/.htpasswd >> .htaccess
echo require valid-user >> .htaccess

# invoke htpasswd to set the judge password
echo Please set a password for the \"judge\" pages:
htpasswd -c .htpasswd judge
